- sudo apt-get install ghostscript
- gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
其中,-dPDFSETTINGS=/screen 或者 /ebook 或者 /prepress,分别对应着低、中、高三个清晰度的压缩 - 或者gs -o output.pdf -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress input.pdf 逐页压缩,防止有些页的pdf损坏无法压缩出现bug
Linux系统里压缩PDF文件大小
于 2021-12-23 14:44:28 首次发布